﻿@model MvcApplication5.Models.AddAccountModel


@{
    ViewBag.Title = "AddAccount";
    Layout = "~/Views/News/AdminLayout.cshtml";
}

<h2>Thêm tài khoản mới</h2>
@using(Html.BeginForm()){
<fieldset>
    <legend>Account</legend>
    <table>
        <tr>
            <td class="editor-label">
                Tên tài khoản:
            </td>                 
            <td class="editor-field">
                @Html.EditorFor(model => model.Account.Username)
                @Html.ValidationMessageFor(model => model.Account.Username)
            </td>
        </tr>
        <tr>
            <td class="editor-label">
                Mật khẩu:
            </td>
            <td class="editor-field">
                @Html.PasswordFor(model => model.Account.Password)
                @Html.ValidationMessageFor(model => model.Account.Password)
            </td>
        </tr>
        <tr>
            <td class="editor-label">
                Nhập lại mật khẩu:
            </td>
            <td class="editor-field">
                <input type="password" id="password2" name="password2" />
            </td>
        </tr>
        <tr>
            <td class="editor-label">
                Loại tài khoản:
            </td>
            <td class="editor-field">
                <select>
                    <option>CTV</option>
                    <option>BTV</option>
                </select>
            </td>
        </tr>
        <tr>
            <td class="editor-label">
                Chuyên mục:
            </td>
            <td class="editor-field">                
                    @Html.DropDownListFor(model => model.Account.Category, new SelectList(Model.categoryList, "Tag", "Name"))                
            </td>
        </tr>
    </table>
        <input type="submit" value="Tạo mới"/>
        <input type="reset" value="Reset"/>
</fieldset>
}